package com.shop.feign;

import com.shop.feign.impl.SeckillCouponFeignImpl;
import com.shop.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
//调用优惠系统
@Component
@FeignClient(value = "website-coupon-4001",fallback = SeckillCouponFeignImpl.class)
public interface SeckillCouponFeign {

    //查询全部活动场次和每个场次下的sku商品
    @GetMapping("/seckill_session/findAllSeckillSessionBySku")
    public R findAllSeckillSessionBySku();
}
